﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<head>
	<link rel=Stylesheet type="text/css" href="/public/stylesheets/estilo.css">
	<meta http-equiv="Content-Type" content="Text/html; charset=UTF-8"/>
	<title>SGC</title>
	
	#{verbatim}
		${script}
	#{/verbatim}
</head>
<body>
	<div id="conteiner">
		<div id="cabecalho">
			<span id="logo">SGC</span>
			<span class="canto">
				<img src="/public/images/borda.png" id="borda" height="130px" width="80px"/>
				<span id="saudacao">Olá, Usuário. Bom dia!<br/><a href="@{Application.logout()}">Sair</a></span>
			</span>
		</div>
		<div id="menu">
			#{verbatim}${menu}#{/verbatim}
		</div>
		<div id="conteudo">
			<div class="titulo">Exibição de Regentes/Secretários</div>
			<div class="exibicao">
			#{if lis.size() == 0}
			<span class="vazio">Não há Regentes/Secretários Cadastrados.</span>
			#{/if}
			#{else}
				<table class="exibicaoCoralista"><tr class="topo"><td class="nome">Nome</td><td class="email">E-mail</td><td class="login">Login</td><td>Regente</td><td></td><td></td></tr>
				#{list items:lis, as:'usuario'}
					<tr class="item"><td>${usuario.getNome()}</td><td>${usuario.getEmail()}</td><td>${usuario.getLogin()}</td>
					<td class="botaoExibicao">
					#{if usuario.getTipo() == 2}
					<img alt="Regente" src="/public/images/ok.jpg" width="15" height="15">
					#{/if}
					</td>
					<td class="botaoExibicao"><img alt="Editar" src="/public/images/editar.jpg" width="15" height="15"></td>
					<td class="botaoExibicao"><a href="@{AdministradorController.excluirAdmin(usuario.getCodigo())}"><img alt="Excluir" src="/public/images/excluir.jpg" width="15" height="15"></a></td></tr>
				#{/list}
				</table>
			#{/else}
			</div>
		</div>
		<div id="rodape">
			#{verbatim}${rodape}#{/verbatim}
		</div>
	</div>
</body>
</html>
